import Vue from 'vue'
import Router from 'vue-router'
import makePlay from '@/pages/makePlan'
import showPlan from '@/pages/showPlan'
import showClause from '@/pages/showClause'
// import htmlToPdf from '@/htmlTopdf'
import pdfShow from '@/pages/pdfShow'
// import sectionHead from '@/components/sectionHead'

Vue.use(Router)
// Vue.use(htmlToPdf)

export default new Router({
  mode: 'hash',
  routes: [
    {
      path: '/',
      name: 'makePlan',
      component: makePlay,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/showPlan',
      name: 'showPlan',
      component: showPlan
    },
    {
      path: '/showClause',
      name: 'showClause',
      component: showClause
    },
    {
      path: '/pdfShow',
      name: 'pdfShow',
      component: pdfShow
    }
  ]
})
